import React from 'react';
import { View, Text, Image, ScrollView, TextInput, Dimensions } from 'react-native';

//获取屏幕的宽高
const screenWidth =Math.round( Dimensions.get('window').width);
const screenHight =Math.round( Dimensions.get('window').height);
/*
1
*/
function App() {
  return (
    <View style={{ backgroundColor:'aqua',flex: 1 ,flexDirection: 'row',width:'50%'}}>
      <Text style={{color:'red',fontSize:50}}>jsx</Text>
      <Text style={{color:'blue'}}>jsx</Text>
      <View style={{backgroundColor:'yellow',flex:1,width:screenWidth/2,height:screenHight/2}}>
        <Text>屏幕宽度和高度的一半</Text>
      </View>
    </View>
  );
}

export default App;
